package com.cyl.wms.controller;

import com.cyl.wms.domain.MaterialModel;
import com.cyl.wms.service.MaterialModelService;
import com.ruoyi.common.core.controller.BaseController;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@Api(description ="物料型号接口列表")
@RestController
@RequestMapping("/wms/materialModel")
public class MaterialModelController extends BaseController {
    @Autowired
    private MaterialModelService service;

    @ApiOperation("查询全部物料列表")
    @PostMapping("/listAll")
    public ResponseEntity<List<MaterialModel>> listAll() {
        List<MaterialModel> list = service.selectListAll();
        return ResponseEntity.ok(list);
    }

}
